/**
 * 获取设备信息
 */
export interface EquipmentInfo {
  id?: number;
  name: string;
  status?: "available" | "borrowed" | "maintenance" | "discarded";
  location?: string;
  createdAt?: Date;
}
/**
 * 公告信息
 */
export interface AnnouncementInfo {
  id?: number;
  title: string;
  content: string;
  // 公告类别
  category?: "emergency" | "event" | "rules_update";
  createdAt?: Date;
}
/**
 * 历史公告信息
 */
export interface AnnouncementHistoryInfo {
  id?: number;
  announcementId: number;
  modifiedAt?: Date;
  modifiedBy: Date;
  changes?: string;
}
/**
 * 设备报废记录
 */
export interface EquipmentDiscardInfo {
  id?: number;
  equipmentId: number;
  discardDate?: Date;
  reason?: string;
  // 报废方式
  disposalMethod?: string;
}
/**
 * 设备维护记录
 */
export interface EquipmentMaintenanceInfo {
  id?: number;
  equipmentId: number;
  maintenanceDate?: Date;
  detail?: string;
  // 负责人
  responsiblePerson?: string;
}
/**
 * 设备租借记录
 */
export interface EquipmentRentalsInfo {
  id?: number;
  equipmentId: number;
  userId: number;
  // 租借日期
  rentalDate: Date;
  returnDate: Date;
}
/**
 * 设备租借记录
 */
export interface EquipmentRentalsInfo {
  id?: number;
  equipmentId: number;
  userId: number;
  // 租借日期
  rentalDate: Date;
  returnDate: Date;
}
/**
 * 用户管理信息
 */
export interface UserManagementInfo {
  id?: number;
  userName: string;
  // 是否已被拉黑
  blacklist: bigint;
  // 拉黑天数
  blacklistDays: number;
}
